package com.allwees.bs.c.module.order.req;

import com.allwees.bs.core.modelbase.req.Req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 购物车
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class CartUseCashReq extends Req {

    /** 购物车id **/
    private String cartUuid;

    /** 用户优惠券 **/
    private BigDecimal amtCash;

    public BigDecimal getAmtCash() {
        return amtCash == null ? BigDecimal.ZERO : amtCash;
    }
}
